/**
 * Clase que crea las estaciones que el tren debe recorrer
 * **/

package
{
	public class DistanceObjCreator
	{
		private static var _initPos:Number = 0;
		private static var _stationsList:Array = new Array();
		
		
		public function DistanceObjCreator()
		{
		}
		
		public static function get stationsList():Array
		{
			return _stationsList;
		}

		public static function set stationsList(value:Array):void
		{
			_stationsList = value;
		}

		public static function createDistObj(init:Number, dest:Number, tStopped:Number, segVMax:Number) : DistanceObject
		{
			var station:DistanceObject = new DistanceObject( init, dest, tStopped, segVMax);
			
			stationsList.push( station );
			
			return station;
		}
		
		public static function clearStationList() : void
		{
			_stationsList.splice(0, _stationsList.length);
		}
	}
}